home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / System / ScreenDaemon 1.2 / ScreenDaemon cdev / ScreenDaemon Control.h < prev    next >
Text File  |  1996-05-07  |  1KB  |  70 lines

  1. /* SDcdev class definition */
  2.  
  3. #include "TControlPanel.h"
  4.  
  5. struct SDcdev : TControlPanel {
  6.  
  7. //    instance variables
  8.     
  9.     short        sleepNowRect,
  10.                 neverSleepRect;
  11.     Handle        pictHandles[8];
  12.     Rect        smallSNRect[4],
  13.                 smallNSRect[4],
  14.                 smIdleRect,
  15.                 smRefrRect;
  16.     Boolean        mustRemember;
  17.  
  18. //    methods + functions
  19.         
  20.             SDcdev(short numItems,DialogPtr cp);
  21.     virtual    ~SDcdev(void);
  22.  
  23.     virtual long Init(void);                    // "initDev"
  24.     virtual long Idle(void);                    // "nulDev"
  25.     virtual long Close(void);                    // "closeDev"
  26.     virtual long KeyDown(short);                // "keyEvtDev"
  27.     virtual long ItemHit(short);                // "hitDev"
  28.     void RememberValues(void);
  29. };
  30.  
  31.  
  32.  
  33. /* Picture resource IDs */
  34.  
  35. #define topLeftPict        129
  36. #define topRightPict    130
  37. #define botLeftPict        131
  38. #define botRightPict    132
  39. #define noArrowPict        133
  40. #define upArrowPict        134
  41. #define dnArrowPict        135
  42. #define grArrowPict        136
  43.  
  44.  
  45. /* Rectangle numbers */
  46.  
  47. #define topLeftRect        0
  48. #define topRightRect    1
  49. #define botRightRect    2
  50. #define botLeftRect        3
  51. #define noArrow            4
  52. #define upArrow            5
  53. #define dnArrow            6
  54. #define grArrow            7
  55.  
  56.  
  57. /* Dialog item numbers */
  58.  
  59. #define screenOn    1            // "On / Off" check box
  60. #define startupIcon    2            // "Startup Icon" check box
  61. #define sleepNow    3            // "Sleep Now" picture
  62. #define neverSleep    4            // "Never Sleep" picture
  63. #define idleMins    5            // "idle time" edit text item
  64. #define idleRect    6            // idle time arrows picture
  65.  
  66.  
  67. /* A lone figure in the sunset */
  68.  
  69. Boolean OpenPrefsFile(void);
  70.